//
//  StorePayInforTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/17.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "StorePayInforTableViewCell.h"

@implementation StorePayInforTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        GLGWLabel * shuoMingLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(15), kHeightProportion_In_iPhoneTriploid(20), KScreenWidth - kWidthProportion_In_iPhoneTriploid(30), kHeightProportion_In_iPhoneTriploid(22)) theFont:BOLDSYSTEMFONT(16) theColor:kColor_Rule_Black inSuperView:self];
        shuoMingLabel.text = @"支付说明";
        //
        CGFloat butWidth = (KScreenWidth)/4;
        NSArray * butTitleArr = @[@"担保支付",@"线下网银转账",@"承兑汇票",@"货到付款"];
        NSArray * butImageArr = @[@"icon_danbaozhifu",@"icon_wangyinzhuanzhang",@"icon_huipiao",@"icon_huodaofukuan"];
        for (int i=0; i<4; i++) {
            GLGWButton * but = [[GLGWButton alloc] initWithFrame:CGRectMake(butWidth *i, kY_With_View(shuoMingLabel, 20), butWidth, kHeightProportion_In_iPhoneTriploid(55)) titleText:butTitleArr[i] titleLableFont:SYSTEMFONT(14) titleLableColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
            but.image_Name = butImageArr[i];
            [but setImagePositionWithType:SSImagePositionTypeTop spacing:kHeightProportion_In_iPhoneTriploid(8)];
        }
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
